package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-07-04
 * Time: 18:43
 */
public class Test {
    public static void main(String[] args) {
        StringBuffer stringBuffer = new StringBuffer("hehe");
        stringBuffer.append(23);
        System.out.println(stringBuffer);
        StringBuilder stringBuilder = new StringBuilder("haha");
        stringBuilder.append(12);
        System.out.println(stringBuilder);


/*        System.out.println(stringBuffer);

        stringBuffer.delete(1,3);
        System.out.println(stringBuffer);

        System.out.println(stringBuffer.reverse());

        String str = stringBuffer.toString();*/


    }
}
